package org.example.Server.mapper.survey;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.Server.model.examination.qs.QSSubmitDTO;
import org.example.Server.model.survey.*;

import java.util.List;

@Mapper
public interface SurveyMapper extends BaseMapper<Survey> {

    List<SurveyVO> getSurveyList(Integer techId);

    List<SurveyVO> getStuSurveyList(Integer userId, Integer semId, Integer status);

    List<SurveyStuSel> getSurStuSels(Integer paperId, Integer surveyStuId);

    List<SurveyStuQna> getSurStuQnas(Integer paperId, Integer surveyStuId);

    Integer getStuSurveyExist(SurveySubmitDTO surveyStuDTO);

    void addStuSurveySubmit(SurveySubmitDTO surveyStuDTO);

    void addStuSurveySelSubmit(List<QSSubmitDTO> questions, Integer surveyStuId);

    void addStuSurveyQnaSubmit(List<QSSubmitDTO> questions, Integer surveyStuId);
}
